package com.yupi.shanoj.service;

import com.yupi.shanoj.common.BaseResponse;
import com.yupi.shanoj.model.dto.video.VideoAddRequest;
import com.yupi.shanoj.model.entity.Video;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
* @author 23949
* @description 针对表【video(视频信息表)】的数据库操作Service
* @createDate 2024-07-17 14:26:00
*/
public interface VideoService extends IService<Video> {

    BaseResponse<Long> askChunk(String hash);

    BaseResponse<Long> uploadChunk(MultipartFile chunk, String hash, Integer index) throws IOException;

    BaseResponse<Long> cancelUpload(String hash);

    BaseResponse<Long> addVideo(VideoAddRequest videoAddRequest, MultipartFile cover);
}
